home *** CD-ROM | disk | FTP | other *** search
- on movesonic
- global gloch, gcursorh
- set h to the mouseH
- set the locH of sprite 34 to h
- set gcursorh to h
- if gloch <> h then
- if gloch < h then
- if the castNum of sprite 34 > the number of cast "Sonic-2" then
- set the castNum of sprite 34 to the number of cast "Sonic-1"
- else
- if the castNum of sprite 34 > the number of cast "Sonic-1" then
- set the castNum of sprite 34 to the number of cast "Sonic-3"
- else
- set the castNum of sprite 34 to the number of cast "Sonic-2"
- end if
- end if
- else
- if the castNum of sprite 34 < the number of cast "Sonic-2" then
- set the castNum of sprite 34 to the number of cast "Sonic-3"
- else
- if the castNum of sprite 34 < the number of cast "Sonic-3" then
- set the castNum of sprite 34 to the number of cast "Sonic-1"
- else
- set the castNum of sprite 34 to the number of cast "Sonic-2"
- end if
- end if
- end if
- set gloch to h
- end if
- end
-